import QtQuick

MouseArea{
    property string color:""
    property string iconColor: ""
    property string hoverdColor: ""
    property string source: ""
    property bool isHoverd: false
    width:30
    height:width
    hoverEnabled: true
    Rectangle{
        anchors.fill: parent
        radius: 100
        color:if(parent.isHoverd) return hoverdColor
        else return parent.color
    }
    Image{
        width:parent.width*.65
        height: width
        anchors.centerIn:parent
        source:parent.source
        sourceSize: Qt.size(32,32)
        // color:parent.iconColor
    }
    onEntered: {
        isHoverd=true
    }
    onExited: {
        isHoverd=false
    }
}

